import { BasicColumn } from '@/components/Table/src/types/table';

export function getBasicColumns(): BasicColumn[] {
  return [
    {
      title: '字典编码',
      dataIndex: 'dictCode',
      width: '100px',
    },
    {
      title: '字典标签',
      dataIndex: 'dictLabel',
      width: '200px',
      ellipsis: true,
    },
    {
      title: '字典键值',
      dataIndex: 'dictValue',
      width: '200px',
      ellipsis: true,
    },
    {
      title: '字典排序',
      dataIndex: 'dictSort',
      width: '100px',
    },
    {
      title: '状态',
      dataIndex: 'status',
      width: '100px',
      slots: { customRender: 'status' },
    },
    {
      title: '备注',
      dataIndex: 'remark',
      width: '150px',
      ellipsis: true,
    },
    {
      title: '创建时间',
      dataIndex: 'createTime',
      sorter: true,
      width: '200px',
    },
  ];
}
